package com.estate.utils;

public class ForumUtil {

	public static int getForumInt(String forumString){
		int forum = 0;
		
		if("未发布".equals(forumString)){
			forum = 1;
		}else if("已发布".equals(forumString)){
			forum = 2;
		}
		
		return forum;
	}
	
	public static String getForumString(int forumInt){
		String forum = "";
		
		if(forumInt == 1){
			forum = "未发布";
		}else if(forumInt == 2){
			forum = "已发布";
		}
		return forum;
	}
}
